home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 41.zip / BS1 part 41 / Compute`s Amiga resource 1.adf / Source / ALC / adviff.h < prev    next >
C/C++ Source or Header  |  1989-02-07  |  2KB  |  44 lines

  1. #include <exec/types.h>
  2.  
  3. /* Return values from read_iff_header() */
  4. #define RIFFH_SUCCESS 1
  5. #define RIFFH_NOOPEN 3
  6. #define RIFFH_INCOMPLETE 4
  7. #define RIFFH_NOFORM 5
  8. #define RIFFH_NOILBM 6
  9.  
  10. /* Return values from load_iff() */
  11. #define LIFF_SUCCESS 1
  12. #define LIFF_NOOPEN 3
  13. #define LIFF_NOSEEK 4
  14. #define LIFF_COLORERR 5
  15. #define LIFF_BODYERR 6
  16. #define LIFF_SIZEERR 7
  17. #define LIFF_GETDATAERR 8
  18. #define LIFF_MEMALLOCERR 9
  19. #define LIFF_IMAGEREADERR 10
  20.  
  21. struct iff_header /* This info taken from STart Vol.1 Num.2 pg.42 */
  22. {
  23.   char form[4];         /* F O R M */
  24.   ULONG file_size;    /* Length of file exclusive of FORM & this length code */
  25.   char ilbm[4];         /* I L B M */
  26.   char bmhd[4];         /* B M H D */
  27.   ULONG header_size;    /* Length of header (expected to be 20 bytes) */
  28.   UWORD width;          /* Width of form in pixels */
  29.   UWORD height;         /* Height of form in pixels */
  30.   UWORD x_pixel;        /* X pixel location (assumed to be 0) */
  31.   UWORD y_pixel;        /* Y pixel location (assumed to be 0) */
  32.   UBYTE num_planes;     /* Number of bit planes */
  33.   UBYTE mask;           /* Masking */
  34.   UBYTE compression;    /* 0 = no compression, 1 = RLE */
  35.   UBYTE filler;         /* Unused filler byte */
  36.   UWORD trans_color;    /* Transparent color pixel value */
  37.   UBYTE x_aspect;       /* X aspect ratio */
  38.   UBYTE y_aspect;       /* Y aspect ratio */
  39.   UWORD page_width;     /* Page width */
  40.   UWORD page_height;    /* Page height */
  41.   char cmap[4];         /* C M A P */
  42.   ULONG cmap_size;      /* Size of color map information segment */
  43. };
  44.